package cn.pku.ss.fa.ui;

import java.util.Random;

public class URLStrategy {
	
	public static int generateRandomId() {
		return new Random().nextInt(Integer.MAX_VALUE);
	}
	

	public static String getUserRootURL(int userId) {
		return "/user/" + userId;
	}
	
	public static String getAlbumRootURL(int userId) {
		return getUserRootURL(userId) + "/album";
	}
	
	public static String getAlbumURL(int userId, int albumId) {
		return getAlbumRootURL(userId) + "/" + albumId;
	}
	
	//////////////////////////////////////////////////////////////////////////////

	private URLStrategy() {}

}
